<template>
  <div id="app">
    <dv-full-screen-container>
      <div class="border-box-main">
        <dv-border-box-11 title="xxx大学数据可视化" :titleWidth="350">
          <div class="title-ani">
            <dv-decoration-5 style="width: 520px; height: 30px" />"
          </div>
          <div class="left-ani">
            <dv-decoration-3 style="width: 450px; height: 16px" />
          </div>
          <div class="right-ani">
            <dv-decoration-3 style="width: 450px; height: 16px" />
          </div>
          <div id="nav">
            <div class="nav-left">
              <dv-decoration-11 style="width: 180px; height: 52px">
                <router-link to="/">学校发展历程</router-link>
              </dv-decoration-11>
              <dv-decoration-11 style="width: 180px; height: 52px">
                <router-link to="/stu">学生信息可视化</router-link>
              </dv-decoration-11>
            </div>
            <div class="nav-right">
              <dv-decoration-11 style="width: 180px; height: 52px">
                <router-link to="/tea">教师信息可视化</router-link>
              </dv-decoration-11>
              <dv-decoration-11 style="width: 180px; height: 52px">
                <router-link to="/magor">专业信息可视化</router-link>
              </dv-decoration-11>
            </div>
          </div>
          <div class="router-main">
            <router-view />
          </div>
        </dv-border-box-11>
      </div>
    </dv-full-screen-container>
  </div>
</template>
<script>
import space from './components/space.vue'
export default {
  name: 'App',
  components: {
    space
  },
  data () {
    return {
      isSpace: false
    }
  },
}
</script>


<style lang="scss">
body {
  margin: 0;
  padding: 0;
}

#app {
  width: 100%;
  height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  background: url("./assets/index.png");
  .dv-border-box-11-title {
    fill: rgb(17, 255, 248);
    font-size: 22px;
    font-family: "KaiTi";
  }
  .border-box-main {
    width: 100%;
    height: 88%;
    display: flex;
    align-items: center;
    .router-main {
      width: 97%;
      height: 80%;
      position: absolute;
      top: 17%;
      left: 50%;
      transform: translateX(-50%);
    }
    .title-ani {
      position: absolute;
      top: 50px;
      left: 50%;
      transform: translateX(-50%);
    }

    .left-ani {
      position: absolute;
      left: -50px;
      top: 5px;
    }

    .right-ani {
      position: absolute;
      right: 100px;
      top: 5px;
    }
  }
}

#nav {
  width: 95%;
  padding: 30px;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  a {
    font-weight: bold;
    color: #ffffff;
    font-family: "宋体";
    font-size: 14px;
    text-decoration: none;

    &.router-link-exact-active {
      color: #e8d500;
    }
  }
  .nav-left {
    width: 450px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-right {
    width: 450px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
</style>
